Repository navigation
Anchor ../ config globs above a verbatim config directory - #1773
Merged
Merged
Conversation
thekevinbot
marked this pull request as ready for review
November 19, 2026 02:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1770
On Windows the CLI canonicalizes
-cto a verbatim\\?\path.absolute_targetjoined a written../...(or~/...) suffix onto it whole, and under a verbatim prefix/is not a separator, so the suffix became one literal component and the anchor stayed at the config directory. The suffix is now pushed one separator-delimited part at a time, sonormalizefolds the..as it already did for verbatim paths. Non-verbatim and Unix paths build the same components as before.Red: Windows tests job 135281528712 (run 44440999478):
path_table::tests::windows::a_parent_relative_config_glob_climbs_out_of_a_verbatim_config_directory:left: Some(("\\?\C:\work\cfg", "../data/*.json")),right: Some(("\\?\C:\work\data", "*.json"))a_config_table_above_the_config_whose_directory_is_missing_fails_the_query:exited zero; stderr: dirsql: table 'later': glob '../absent/*.json' matched no files under \\?\...\cfgManual exercise:
dirsql query "SELECT p FROM docs" -c .dirsql.tomlwith glob../data/*.jsonreturned the file above the config (Linux; Windows covered by CI).Changelog / Migrations
packages/rust/changelog.d/packages/rust/migrations.d/E2E Verification
packages/python/e2e-attestations/bot-1770-windows-dotdot-glob-1118.json:uv run python -m pytest tests/e2e/declared_table_name_test.py tests/e2e/query_contract_test.py -x -q-- 12 passed (config-table e2e tests; no e2e test uses../globs)packages/ts/e2e-attestations/bot-1770-windows-dotdot-glob-1118.json:just e2e-attest-ts-- 29 passedcargo test --features cli --test cli_config_anchor --test cli_missing_anchorandcargo test --lib path_tablepass locally